package com.example.hrmsaas.system.controller;

import org.springframework.web.bind.annotation.ModelAttribute;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class BaseController {

    protected HttpServletRequest request;

    protected HttpServletResponse response;

    protected String CompanyId;

    protected String CompanyName;

    @ModelAttribute
    public void setRetAndReq(HttpServletRequest request,HttpServletResponse response){
        this.request = request;
        this.response = response;
        // TODO CompanyId
        this.CompanyId = "1";
        this.CompanyName = "chuanzhiboke";
    }
}
